﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace wfDesigner
{
    /// <summary>
    /// Window1.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
      
        public MainWindow()
        {
            InitializeComponent();
        }

    //点击退出菜单项
        private void Exit_Click(object sender, RoutedEventArgs e)
        {
                      this.Close();
        }

        //点击流程类型管理菜单项
        private void FlowType_Click(object sender, RoutedEventArgs e)
        {
            this.MainCanvas.Children.Clear();
            FlowTypeControl flowTypeControl = new FlowTypeControl();
            this.MainCanvas.Children.Add(flowTypeControl);
        }

        //点击流程管理菜单项
        private void Flow_Click(object sender, RoutedEventArgs e)
        {
            this.MainCanvas.Children.Clear();
            FlowChartControl flowChartControl = new FlowChartControl();
            this.MainCanvas.Children.Add(flowChartControl);
        }
    }
}
